package com.dmw.vo.homePageVO;

import com.dmw.vo.homePageVO.PageVO.Children;
import com.dmw.vo.homePageVO.PageVO.HotItems;

import java.io.Serializable;
import java.util.Arrays;
import java.util.List;

/**
 * 获取所有的商品分类VO
 */
public class ItemTypeVO implements Serializable {
    /*
        output
     */
    private Integer id;//分类主键
    private String itemType;//分类名称
    private Integer level;//分类级别(1:一级分类,2:二级分类)
    private Integer parent;//父级分类Id(一级分类的父级Id为0)
    private String aliasName;//分类别名(用于横向导航)
    private List<Children> children;//子分类数组（子分类格式同父分类格式）
    private List<HotItems> hotItems;//热门节目


    @Override
    public String toString() {
        return "ItemTypeVO{" +
                "id=" + id +
                ", itemType='" + itemType + '\'' +
                ", level=" + level +
                ", parent=" + parent +
                ", aliasName='" + aliasName + '\'' +
                ", children=" + children +
                ", hotItems=" + hotItems +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getItemType() {
        return itemType;
    }

    public void setItemType(String itemType) {
        this.itemType = itemType;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getParent() {
        return parent;
    }

    public void setParent(Integer parent) {
        this.parent = parent;
    }

    public String getAliasName() {
        return aliasName;
    }

    public void setAliasName(String aliasName) {
        this.aliasName = aliasName;
    }

    public List<Children> getChildren() {
        return children;
    }

    public void setChildren(List<Children> children) {
        this.children = children;
    }

    public List<HotItems> getHotItems() {
        return hotItems;
    }

    public void setHotItems(List<HotItems> hotItems) {
        this.hotItems = hotItems;
    }
}
